//调用接口配置文件
import { request } from 'config/request'

export async function getNewsDetail(params) {
    return request({
        url: 'admin/news/detail',
        method: 'POST',
        data: params,
        headers:{
          "Content-type":"application/json",
        }
    });
};
//获取标签
export async function labelQueryList(params) {
    return request({
        url: 'admin/label/queryList',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
//获取级联列表
export async function parentCode(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
//获取楼盘列表
export async function getEstateList(params) {
    return request({
        url: 'admin/estate/adminList',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json"
        },
    });
};
export async function submit(params) {
	return request({
		url: 'admin/news/create',
		method: 'POST',
		data: params,
		headers: {
			"Content-type": "application/json",
		}
	});
};
export async function update(params) {
    return request({
        url: 'admin/news/update',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function deleteDetail(params) {
    return request({
        url: 'admin/news/delete',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};